using System;

namespace DataLayer {
	public class PersonDataAccess {
		private static readonly log4net.ILog log = log4net.LogManager.GetLogger ("DataLayerLogger");

		public static void Save (PersonDTO person) {
			log.DebugFormat ("PersonDTO argument name={0}, age={1}, height={2}", person.Name, person.Age, person.Height);

			try {
				throw new NotImplementedException ();
			}
			catch (Exception ex) {
				log.ErrorFormat ("Error saving information. Message: {0}", ex.Message);
				Exception wrapException = new Exception ("Error saving information", ex);
				throw wrapException;
			}
		}
		
		public static PersonDTO[] GetList () {

			try {
				throw new NotImplementedException ();
			}
			catch (Exception ex) {
				log.ErrorFormat ("Error retrieving list. Message: {0}", ex.Message);
				Exception wrapException = new Exception ("Error retrieving list.", ex);
				throw wrapException;
			}
		}
	}
}
